package com.itheima.d4_printstream;

import java.io.PrintStream;
import java.nio.charset.Charset;

public class PrintTest1 {
    public static void main(String[] args) {
        try(
                PrintStream ps =new PrintStream("D:\\Java\\JavaEE_learn\\IO_app2\\src\\itheima08.txt", Charset.forName("UTF-8"));
        ){
            ps.println(97);
            ps.println("a");
            ps.println("我爱");
            ps.println(97);

        } catch(Exception e){
            e.printStackTrace();
        }
    }
}
